<div class="p10 w600">
<!--startprint-->
  <table class="formtable">
    <tr>
      <th class="w80">IMEI号:</th>
      <td class="w150">{$info['imei']}</td>
      <th class="w80">购买日期:</th>
      <td class="w150">{date('Y-m-d',$info['shop_time'])}</td>
    </tr>
    <tr>
      <th class="w80">厂商:</th>
      <td class="w150">{$info['manufacturer_name']}</td>
      <th class="w80">机型:</th>
      <td class="w150">{$info['producttype_name']}</td>
    </tr>
    <tr>
      <th>是否过保:</th>
      <td colspan="3">{if $info['overtime'] == '是'}<span class="badge">保内</span>{else}<span class="badge bg-red">过保</span>{/if}</td>
    </tr>
    <tr>
      <th>故障描述:</th>
      <td colspan="3">{$info['fault_why']}</td>
    </tr>
    <tr>
      <th>实际故障:</th>
      <td colspan="3">{$info['failure_cause']}</td>
    </tr>
    <tr>
      <th>建议维修方式:</th>
      <td colspan="3">{$info['service_mode']}</td>
    </tr>
  </table>
 <!--endprint-->
<div class="btn fn-tac">
  <a href="javascript:;" onClick="doPrint()"  class="button">
      <i class="iconfont icon-dayinji"></i> 打印
  </a>
</div>
</div>
<script type="text/javascript">
function doPrint() { 
    bdhtml=window.document.body.innerHTML; 
    sprnstr="<!--startprint-->"; 
    eprnstr="<!--endprint-->"; 
    prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); 
    prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); 
    window.document.body.innerHTML=prnhtml; 
    window.print(); 
}
</script>
